import React, { useEffect } from 'react'
import { useTranslation } from 'react-i18next';
type Props = {}

const ListChildren = ({ lists }: any) => {
    const { t, i18n } = useTranslation();
    return (
        <ul className='po'>
            {
                lists.length ? lists.map((item: any, index: number) => {
                    return <li key={index}><a href="/wipi/client/en/category/back-end">
                        <span>{item.label}</span><span>{t("Total")} {item.articleCount} {t("count")}</span>
                    </a></li>
                }) : "暂无数据"
            }
        </ul>
    )
}

export default ListChildren